<template>
  <checkbox name="aaa" :checked="isChecked"/>
  <button @click="console.log(isChecked)">显示</button>
</template>

<script setup>
import { ref } from 'vue';

const isChecked = ref(true);

</script>

<style lang="scss" scoped>

</style>